﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WMS.Interfactructure.Migrations
{
    /// <inheritdoc />
    public partial class _0903bpy4 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "BoxSkuModel",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    WarehouseBoxId = table.Column<int>(type: "int", nullable: false),
                    SkuId = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BoxSkuModel", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "ShelfManageBoxModel",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ShelfManageId = table.Column<int>(type: "int", nullable: false),
                    WarehouseBoxId = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ShelfManageBoxModel", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "SkuModel",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    SkuName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ProductManageId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    InventoryLevel = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SkuModel", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "WarehouseBoxModel",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    WarehouseBoxNum = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SkuName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    BoxManagementId = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WarehouseBoxModel", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "BoxSkuModel");

            migrationBuilder.DropTable(
                name: "ShelfManageBoxModel");

            migrationBuilder.DropTable(
                name: "SkuModel");

            migrationBuilder.DropTable(
                name: "WarehouseBoxModel");
        }
    }
}
